import { Controller, Get, Param} from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  getHello(): string {
    return this.appService.getHello();
  }
  @Get("api/nsyj/login/:username/:password")
  login(@Param() params): string {
    console.log("login:",params.username,params.password);
    return JSON.stringify({user:params,ok:true,message:"hello world"});
  }
}
